<?php
include "page/header.php";
?>

<canvas id="canvas" width="1000" height="800">
	Canvas not supported.
</canvas>

<div id="dialog" title="Congratulations">
	<p>Congratulations, level is completed!</p>
	<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-hover">Go to the next level</button>
</div>
<div id="gameOverDialog" title="Game over">
	<p>Congratulations, you beat the game!</p>        
</div>


<script type="text/javascript">
	document.sokobanGame = new Game();
	document.sokobanGame.Run();
	$("div#dialog").dialog({
		autoOpen:false,
		modal: true,
		width: 400
	});
	$("div#gameOverDialog").dialog({
		autoOpen: false,
		modal: true,
		width: 400
	});
</script>


<?php
include "page/footer.php"
?>